#ifndef MESHSLICE_MESHTYPES_H
#define MESHSLICE_MESHTYPES_H

#include <Ogre.h>
#include <QtCore>

namespace MeshSlice {

    using namespace Ogre;

    struct MeshIndex {
        unsigned short FaceA;
        unsigned short FaceB;
        unsigned short FaceC;

        MeshIndex(unsigned short nA, unsigned short nB, unsigned short nC)
            : FaceA(nA)
            , FaceB(nB)
            , FaceC(nC)
        {
        }
    };

    struct SubMeshBlock {
        String MaterialName;
        QList<Vector3> PosVertices;
        QList<Vector3> NormalVertices;
        QList<Vector2> TexVertices;
        QList<quint64> Indices;

        bool isNull() const { return PosVertices.isEmpty(); }
    };

} // namespace MeshSlice

#endif // MESHSLICE_MESHTYPES_H
